package com.shundr.shipper.order.model;

/**
 * 
 * CargoOrderInfo 订单实体
 * 
 * @author larry 2015-4-15 上午11:11:33
 * @version 1.0.0
 * 
 */

public class CargoOrderInfo {

	public class OrderStatus {
		/**
		 * 已完成
		 */
		public static final int COMPLETED = 1;
		/**
		 * 全部
		 */
		public static final int ALL = -1;
		/**
		 * 待我处理
		 */
		public static final int WAIT_ME_HANDLE = 2;
		/**
		 * 待对方确认
		 */
		public static final int WAIT_OTHER_HANDLE = 3;
		/**
		 * 无效
		 */
		public static final int INVALIDATED = 9;
	}

	/**
	* 
	*/
	public Integer id;

	/**
	 * 订单号=YYMMDD+cargo_id+truck_user_id
	 */
	public Long orderId;

	/**
	* 
	*/
	public Integer cargoId;

	/**
	* 
	*/
	public Integer cargoUserId;

	/**
	* 
	*/
	public Integer truckUserId;

	/**
	 * 货车的Id
	 */
	public Integer truckId;

	/**
	 * 司机订单状态，0:没有确认接单 1：确认接单，2：拒绝订单，9：删除订单（隐藏订单）
	 */
	public Short orderTruckStatus;

	/**
	 * 货主订单状态，0:没有确认接单 1：确认接单，2：拒绝订单，9：删除订单（隐藏订单）
	 */
	public Short orderCargoStatus;

	/**
	 * 订单类型 1：由司机自己查找，2 货主自己查找的
	 */
	public Short orderType;

	/**
	 * 订单时间
	 */
	public String orderTime;

	/**
	* 
	*/
	public String cargoContactPerson;

	/**
	* 
	*/
	public String cargoContactPhone;

	/**
	* 
	*/
	public String srcPlace;

	/**
	* 
	*/
	public String dstPlace;

	/**
	* 
	*/
	public String cargoName;

	/**
	* 
	*/
	public String truckerName;

	/**
	* 
	*/
	public String truckerPhone;

	/**
	* 
	*/
	public String truckerPlateNumber;

	/**
	 * 0为个人车辆，1为公司车辆
	 */
	public Short truckResourceType;

	// Constructors

	/** default constructor */
	public CargoOrderInfo() {
	}

	/** full constructor */
	public CargoOrderInfo(Long orderId, Integer cargoId, Integer cargoUserId,
			Integer truckUserId, Integer truckId, Short orderTruckStatus,
			Short orderCargoStatus, Short orderType, String orderTime,
			String cargoContactPerson, String cargoContactPhone,
			String srcPlace, String dstPlace, String cargoName,
			String truckerName, String truckerPhone, String truckerPlateNumber,
			Short truckResourceType) {
		this.orderId = orderId;
		this.cargoId = cargoId;
		this.cargoUserId = cargoUserId;
		this.truckUserId = truckUserId;
		this.truckId = truckId;
		this.orderTruckStatus = orderTruckStatus;
		this.orderCargoStatus = orderCargoStatus;
		this.orderType = orderType;
		this.orderTime = orderTime;
		this.cargoContactPerson = cargoContactPerson;
		this.cargoContactPhone = cargoContactPhone;
		this.srcPlace = srcPlace;
		this.dstPlace = dstPlace;
		this.cargoName = cargoName;
		this.truckerName = truckerName;
		this.truckerPhone = truckerPhone;
		this.truckerPlateNumber = truckerPlateNumber;
		this.truckResourceType = truckResourceType;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Integer getCargoId() {
		return this.cargoId;
	}

	public void setCargoId(Integer cargoId) {
		this.cargoId = cargoId;
	}

	public Integer getCargoUserId() {
		return this.cargoUserId;
	}

	public void setCargoUserId(Integer cargoUserId) {
		this.cargoUserId = cargoUserId;
	}

	public Integer getTruckUserId() {
		return this.truckUserId;
	}

	public void setTruckUserId(Integer truckUserId) {
		this.truckUserId = truckUserId;
	}

	public Integer getTruckId() {
		return this.truckId;
	}

	public void setTruckId(Integer truckId) {
		this.truckId = truckId;
	}

	public Short getOrderTruckStatus() {
		return this.orderTruckStatus;
	}

	public void setOrderTruckStatus(Short orderTruckStatus) {
		this.orderTruckStatus = orderTruckStatus;
	}

	public Short getOrderCargoStatus() {
		return this.orderCargoStatus;
	}

	public void setOrderCargoStatus(Short orderCargoStatus) {
		this.orderCargoStatus = orderCargoStatus;
	}

	public Short getOrderType() {
		return this.orderType;
	}

	public void setOrderType(Short orderType) {
		this.orderType = orderType;
	}

	public String getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public String getCargoContactPerson() {
		return this.cargoContactPerson;
	}

	public void setCargoContactPerson(String cargoContactPerson) {
		this.cargoContactPerson = cargoContactPerson;
	}

	public String getCargoContactPhone() {
		return this.cargoContactPhone;
	}

	public void setCargoContactPhone(String cargoContactPhone) {
		this.cargoContactPhone = cargoContactPhone;
	}

	public String getSrcPlace() {
		return this.srcPlace;
	}

	public void setSrcPlace(String srcPlace) {
		this.srcPlace = srcPlace;
	}

	public String getDstPlace() {
		return this.dstPlace;
	}

	public void setDstPlace(String dstPlace) {
		this.dstPlace = dstPlace;
	}

	public String getCargoName() {
		return this.cargoName;
	}

	public void setCargoName(String cargoName) {
		this.cargoName = cargoName;
	}

	public String getTruckerName() {
		return this.truckerName;
	}

	public void setTruckerName(String truckerName) {
		this.truckerName = truckerName;
	}

	public String getTruckerPhone() {
		return this.truckerPhone;
	}

	public void setTruckerPhone(String truckerPhone) {
		this.truckerPhone = truckerPhone;
	}

	public String getTruckerPlateNumber() {
		return this.truckerPlateNumber;
	}

	public void setTruckerPlateNumber(String truckerPlateNumber) {
		this.truckerPlateNumber = truckerPlateNumber;
	}

	public Short getTruckResourceType() {
		return this.truckResourceType;
	}

	public void setTruckResourceType(Short truckResourceType) {
		this.truckResourceType = truckResourceType;
	}

}